package xin.ham.aprs4gserv.entity;

public enum ResultCodeEnum {
    /**
     * 公告异常模块
     */
    // 入参格式错误
    PARAM_ERROR("0400", "入参格式错误"),

    // 系统异常
    SYS_ERROR("0500", "系统异常"),
    // 业务异常
    SERVICE_ERROR("1111", "业务异常"),
    // 没找到对应的服务
    SYS_ERROR_NO_METHOD("ES404", "没找到对应的服务"),

    //搜索不到机构
    CODE_200("0000","成功");





    String code;
    String msg;

    ResultCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String code() {
        return code;
    }

    public String msg(){
        return msg;
    }

    @Override
    public String toString() {
        return "ResultCodeEnum{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
